package com.yykj.hospital.server.model.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
public class HospitalSettingAppointDialog {
    @Id
    private Integer hospitalId;

    @ApiModelProperty("弹出内容")
    @Column(length = 2000)
    private String content;

    @ApiModelProperty("启用状态")
    private Boolean status;

    public static HospitalSettingAppointDialog defaultHospitalSettingAppointDialog(Integer hospitalId){
        return HospitalSettingAppointDialog.builder()
                .hospitalId(hospitalId)
                .content("预约需知：\n - 此服务需要到医院就诊;\n - 服务对象为实名制注册的患者;\n")
                .status(true)
                .build();
    }
}
